<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>汽车抵押贷</title>
    <!--bootstrap要导入的文件-->
    <script th:src="@{/script/jquery-1.12.4.js}"></script>
    <link rel="stylesheet" th:href="@{/css/bootstrap.css}"/>
    <link rel="stylesheet" th:href="@{/css/dai.css}"/>
    <link rel="stylesheet" th:href="@{/css/loanmian.css}"/>
    <script th:src="@{/script/bootstrap.js}"></script>
    <link rel="stylesheet" th:href="@{/bootstrap/css/city-picker.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/css/common.css}"/>
    <link rel="stylesheet" th:href="@{/css/index.css}" type="text/css">
    <script th:src="@{/script/jquery.min.js}" type="text/javascript"></script>
    <script th:src="@{/script/common.js}" type="text/javascript"></script>
    <script th:src="@{/script/vue.min.js}" type="text/javascript"></script>
    <script th:src="@{/script/axios.min.js}" type="text/javascript"></script>
    <script type="text/javascript">
        // 上下滚动
        function AutoScroll(obj) {
            $(obj).find("ul:first").animate({
                    marginTop: "-25px"
                },
                500,
                function () {
                    $(this).css({
                        marginTop: "0px"
                    }).find("li:first").appendTo(this);
                });
        }

        $(document).ready(function () {
            var myar = setInterval('AutoScroll("#scrollDiv")', 3000);
            $("#scrollDiv").hover(function () {
                    clearInterval(myar);
                },
                function () {
                    myar = setInterval('AutoScroll("#scrollDiv")', 3000)
                }); //当鼠标放上去的时候，滚动停止，鼠标离开的时候滚动开始
        });
    </script>
</head>
<body>
<div class="container-fluid" style="background-color: #fff">
    <div class="row">
        <div th:replace="loan/public::head"></div>
    </div>
    <div class="row">
        <a style="text-decoration: none;
        margin-left: 155px;
        margin-top: 55px;
        display: inline-block;" th:href="@{/loan/loanmian}">首页 ></a><span style="color: #D0D0D0">车主抵押贷</span>
    </div>
    <div class="row">
        <div class="col-lg-12" id="head" style="width: 1030px;border: 1px solid #c0c0c0;background-color: white">
            <div class="headright">
                <img style="   height: 259px;
    width: 296px;
    margin-top: 30px;
    margin-left: 18px;
    box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.61);" th:src="@{/images/cardai.jpg}">
            </div>
            <div class="headleft">
                <div style="margin: 30px 0px 10px 72px;"><h3 style="font-size: 25px;
    font-weight: 700;">车主抵押贷</h3></div>
                <div style="font-size: 16px;
    margin: 0px 0px 10px 72px;">不押车,只需车辆拥有权,即可贷
                </div>
                <div>
                    <img style="margin-left: 29px;" th:src="@{/images/car1.png}">
                </div>
                <div>
                    <div style="float: left;margin-left: 72px;margin-right: 39px;">
                        <p style="font-size: 16px;
    margin-bottom: 10px">贷款金额:1-50</p>
                        <p>月利益:1.1%-1.15%</p>
                    </div>
                    <div style="float: left">
                        <p style="font-size: 16px;
    margin-bottom: 10px;">贷款期限:3个月-3年</p>
                        <p>还款方式:等额本息</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12" id="head" style="width: 1030px;
    height: 100px;
    margin-top: -49px;
    border: 1px solid #614b4b;
    background-color:  #658297;">
            <div class="cardaileft">
                <div style="font-weight: 700;
    font-size: 20px;
    color: aliceblue;
    margin: 21px 30px 0px 30px;">申请轻松搞定
                </div>
                <div style="font-size: 16px;
    font-weight: 600;
    color: #b3ccc3;
    margin: 0px 30px 0px 30px; ">搞定网上预约后，将有银行客户经理与您联系，提交资料即可
                </div>
            </div>
            <div class="cardairight">
                <div th:if=" no eq ${session.forapplys.idcard}">
                    <a style="    background-color: #658297;
    margin: 23px 18px 0px 82px;
    display: inline-block;
    width: 150px;
    height: 40px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    color: #fff;
    text-decoration: none;
    line-height: 40px;" th:href="@{/loan/Personal/preSafe}">完善资料</a>
                </div>
                <div th:if=" yes eq ${session.forapplys.idcard}">
                    <a style="    background-color: #658297;
    margin: 23px 18px 0px 82px;
    display: inline-block;
    width: 150px;
    height: 40px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    color: #fff;
    text-decoration: none;
    line-height: 40px;" th:href="@{/loan/agreeapply5}">立即申请</a>
                </div>
            </div>
        </div>
    </div>
    <div class="row" style="    margin-left: 142px;
    margin-top: 46px;
    width: 1031px;">
        <ul class="nav nav-tabs" id="myTab">
            <li class="active"><a data-toggle="tab" href="#home">申请条件</a></li>
            <li><a data-toggle="tab" href="#profile">贷款说明</a></li>
            <li><a data-toggle="tab" href="#messages">准备资料</a></li>
            <li><a data-toggle="tab" href="#settings">答疑解惑</a></li>
        </ul>

        <div class="tab-content">
            <div class="tab-pane active" id="home" style="height: 153px;
    padding-top: 30px;
    border: 1px solid #ccc;
    border-top: none;">
                <div>
                    <h3 style="font-size: 20px;    padding-left: 5px;
    font-weight: 600;
    margin-left: 20px;
    border-left: 5px solid #658297;">申请条件</h3>
                    <div id="tiaojian" style="    margin: 20px;">
                        <img th:src="@{/images/2-1.png}">
                        <span>21-55周岁的中国公民</span>
                        <img th:src="@{/images/2-2.png}">
                        <span>有机动车驾驶证</span>
                        <img th:src="@{/images/2-3.png}">
                        <span>信用记录良好</span>
                    </div>
                </div>
            </div>
            <div class="tab-pane" id="profile" style="height: 153px;
    padding-top: 30px;
    border: 1px solid #ccc;
    border-top: none;">
                <div>
                    <h3 style="font-size: 20px;    padding-left: 5px;
    font-weight: 600;
     margin-left: 20px;
    border-left: 5px solid red;">申请知识</h3>
                    <div id="zhishi" style="    margin: 20px;">
                        <span>贷款金额:<i>1万-50万</i></span>
                        <span>贷款期限:<i>3个月-3年</i></span>
                        <span>月利率:<i>1.0%</i></span>
                        <span>还款方式:<i>等额本息</i></span>
                    </div>
                </div>
            </div>
            <div class="tab-pane" id="messages" style="height: 153px;
    padding-top: 30px;
    border: 1px solid #ccc;
    border-top: none;">
                <div>
                    <h3 style="font-size: 20px;    padding-left: 5px;
    font-weight: 600;
    margin-left: 20px;
    border-left: 5px solid #2dffaa;">准备材料</h3>
                    <div id="cailiao" style="    margin: 20px;">
                        <span>● 二代身份证</span>
                    </div>
                </div>
            </div>
            <div class="tab-pane" id="settings" style="height: 153px;
    padding-top: 30px;
    border: 1px solid #ccc;
    border-top: none;">
                <div>
                    <h3 style="font-size: 20px;    padding-left: 5px;
    font-weight: 600;
    margin-left: 20px;
    border-left: 5px solid #2dffaa;">答疑解惑</h3>
                    <div id="cailiao" style="    margin: 20px;">
                        <p>● Q:申请保单贷款需要提供什么抵押担保吗？

                            ● A: 保单贷款是信用贷款，即无需任何抵押担保，仅凭个人信用即可申请。

                            ● Q:最多可申请到多少贷款额度？

                            ● A:银行将依据客户收入及资信等情况核定额度，不同客户额度可能不同，最高可贷到五十万。

                            ● Q:信用贷款的还款期限有哪些选择？

                            ● A:信用贷款提供多达4种不同的还款期限供您选择：12期、24期、36期，您可以根据自身情况自由选择适合的期限

                            ● Q:我要如何还款？

                            ● A:您在申请贷款时需提供一张平安银行借记卡作为贷款结算专户，后续贷款发放及还款均在此账户进行。</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <!--网站底部-->
        <div th:replace="common/public::footer"></div>
    </div>
</div>

</div>


<script th:src="@{/bootstrap/js/jquery.js}"></script>
<script th:src="@{/bootstrap/js/bootstrap.js}"></script>
<script th:src="@{/bootstrap/js/city-picker.data.js}"></script>
<script th:src="@{/bootstrap/js/city-picker.js}"></script>
<script th:src="@{/bootstrap/js/main.js}"></script>
</body>

<script type="text/javascript">
    function smloan() {
        var name = $('#name').val();
        var phone = $('#phone').val();
        var address = $('#address').val();
        var idcard = $('#idcard').val();
        if (name == null || name.trim() == "") {
            $("#error").html("姓名不能为空！");
            return false;
        } else if (phone == null || phone.trim() == "" || phone.trim().length != 11) {
            $("#error").html("请输入正确的电话号码！");
            return false;
        } else if (idcard == null || idcard.trim() == "" || idcard.trim().length != 18) {
            $("#error").html("请输入正确的身份证！");
            return false;
        } else if (address == null || address.trim() == "") {
            $("#error").html("请选择所在地！");
            return false;
        }
        return true;
    }
</script>
<script>

    $(document).ready(function () {
        if (location.hash) {
            $('a[href=' + location.hash + ']').tab('show');
        }
        $(document.body).on("click", "a[data-toggle]", function (event) {
            location.hash = this.getAttribute("href");
        });
    });
    $(window).on('popstate', function () {
        var anchor = location.hash || $("a[data-toggle=tab]").last().attr("href");
        $('a[href=' + anchor + ']').tab('show');
    });
</script>
</html>